import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path:"/",
    redirect:"/login",
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("../views/User_Login/Login.vue"),
    meta:{
      hideNav:true,
    }
  },
  {
    path: "/reg",
    name: "Reg",
    component: () => import("../views/reg"),
    meta:{
      hideNav:true,
    }
  },
  {
    path: "/playmusicer/:id",
    name: "Playmusicer",
    component: () => import("../views/playmusicer"),
    meta:{
      hideNav:true,
    }
  },
  {
    path: "/pinglun/:id",
    name: "Pinglun",
    component: () => import("../views/pinglun"),
    meta:{
      hideNav:true,
    }
  },
  {
    path: "/playerall",
    name: "Playerall",
    component: () => import("../views/playerall"),
    meta:{
      hideNav:true,
    }
  },
  {
    path: "/mvs",
    name: "Mvs",
    component: () => import("../views/mvs"),
    
  },
  {
    path: "/mine",
    name: "Mine",
    component: () => import("../views/mine"),
  },
  {
    path: "/faxian",
    name: "Faxian",
    component: () => import("../views/Faxian/Faxian.vue"),
  },
  {
    path: "/boke",
    name: "Boke",
    component: () => import("../views/Boke/Boke.vue"),
  },
  {
    path: "/musictext/:id",
    name: "Musictext",
    component: () => import("../views/musictext/index.vue"),
  },
  {
    path: "/singersongs/:id",
    name: "Singersongs",
    component: () => import("../views/singersongs/index.vue"),
    meta:{
      hideNav:true,
    }
  },
  {
    path: "/musicdetail/:id",
    name: "Music",
    component: () => import("../views/musicdetail/index.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
